package com.cloud.user_info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.user_info.entity.SysProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统项目配置
 *
 * @author yzj
 * @since 2022-07-25
 */
@Mapper
public interface SysProjectMapper extends BaseMapper<SysProject> {

    /**
     * 系统项目配置分页
     *
     * @author yzj
     */
    public List<SysProject> selectSysViewList(@Param("param") SysProject param);

    /**
     * 修改配置应用状态
     *
     * @param isApply
     * @param id
     * @return
     */
    public int updateApplyStatus(@Param("isApply") Integer isApply, @Param("id") Long id);

    /**
     * 查询系统项目配置对象
     *
     * @param isApply
     * @return
     */
    public SysProject getViewByApply(@Param("isApply") Integer isApply, @Param("sysCode") String sysCode);

}
